{{--第九步：模板继承--}}
{{--1.先创建首页模板 ，然后创建公共目录 ，在公共目录里创建父级模板--}}
{{--2.继承公共模板--}}
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="/css/app.css">
</head>
<body>
<div class="container">
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <a class="navbar-brand" href="#">laravel</a>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="#">后盾人</a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="{{route('user.index')}}">用户管理</a>
                </li>
            </ul>

            @if(Auth::check())
                <a href="{{route('password')}}" class="btn btn-danger my-2 my-sm-0 mr-2 ">{{Auth::user()->name}}</a>
                <a href="{{route('outlogin')}}" class="btn btn-success my-2 my-sm-0" type="submit">退出登录</a>

            @else
                <a href="{{route('regist')}}" class="btn btn-danger my-2 my-sm-0 mr-2 ">注册</a>
                <a href="{{route('login')}}" class="btn btn-success my-2 my-sm-0" type="submit">登录</a>

            @endif

        </div>

    </nav>
    @include('public._message')
    @yield('content')
</div>
</body>
</html>